package org.example.secondkill.rabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQConfig {
    public static final String KILLSECOND_QUEUE = "killsecond.queue";

    @Bean
    public Queue killsecondQueue() {
        return new Queue(KILLSECOND_QUEUE, true);
    }
}
